package com.jp.knowledge.my.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author gzejia 978862664@qq.com
 */
public class ContactsModel implements Parcelable {

    // 头像
    private String mUrl;
    // 姓名
    private String mName;
    // 部门
    private String mBranch;
    // 状态 0_可邀请，1_已添加
    private String mStats;
    // 首字母
    private String mRemark;
    // 联系方式
    private String mPhone;

    public String getPhone() {
        return mPhone;
    }

    public void setPhone(String phone) {
        mPhone = phone;
    }

    public String getUrl() {
        return mUrl;
    }

    public void setUrl(String url) {
        mUrl = url;
    }

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public String getBranch() {
        return mBranch;
    }

    public void setBranch(String branch) {
        mBranch = branch;
    }

    public String getStats() {
        return mStats;
    }

    public void setStats(String stats) {
        mStats = stats;
    }

    public String getRemark() {
        return mRemark;
    }

    public void setRemark(String remark) {
        mRemark = remark;
    }

    public ContactsModel() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mUrl);
        dest.writeString(this.mName);
        dest.writeString(this.mBranch);
        dest.writeString(this.mStats);
        dest.writeString(this.mRemark);
        dest.writeString(this.mPhone);
    }

    protected ContactsModel(Parcel in) {
        this.mUrl = in.readString();
        this.mName = in.readString();
        this.mBranch = in.readString();
        this.mStats = in.readString();
        this.mRemark = in.readString();
        this.mPhone = in.readString();
    }

    public static final Creator<ContactsModel> CREATOR = new Creator<ContactsModel>() {
        @Override
        public ContactsModel createFromParcel(Parcel source) {
            return new ContactsModel(source);
        }

        @Override
        public ContactsModel[] newArray(int size) {
            return new ContactsModel[size];
        }
    };
}
